home *** CD-ROM | disk | FTP | other *** search
/ Aminet 16 / Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso / Aminet / misc / emu / Easy1541.lha / Easy1541 / dev / Includes / iec / iec.h < prev    next >
C/C++ Source or Header  |  1996-10-08  |  963b  |  40 lines

  1. #ifndef IEC_IEC_H
  2. #define IEC_IEC_H
  3. /*
  4. **    $VER: iec.h 1.1 (08.10.96)
  5. **    Includes Release 1.1
  6. **
  7. **    Definitions and IECBase
  8. **
  9. **    (C) Copyright 1995-1996 Fabrizio Farenga
  10. **      Email: f.farenga@agora.stm.it 
  11. **        All Rights Reserved
  12. */
  13.  
  14. #include "iec/iec_proto.h"
  15. #include "iec/iec_pragmas.h"
  16.  
  17. /* STATUS values for the last input/output operations. */
  18. #define ST_OK           0x00 /* OK                 */
  19. #define ST_READ_TIMEOUT 0x02 /* Timeout reading    */
  20. #define ST_TIMEOUT      0x03 /* Timeout            */
  21. #define ST_EOF          0x40 /* End of file        */
  22. #define ST_NOTPRESENT   0x80 /* Device not present */
  23.  
  24. /* Low-Level commands for the 1541 */
  25. #define CMD_DATA        0x60
  26. #define CMD_CLOSE       0xe0
  27. #define CMD_OPEN        0xf0
  28.  
  29. struct iecbase {
  30.     struct Library LibNode; /* Standard library node */
  31.     ULONG   iec_SysLib;
  32.     ULONG   iec_DosLib;
  33.     ULONG   iec_SegList;
  34.  
  35.     UBYTE   iec_ST;         //Drive STATUS
  36.     UBYTE   iec_pad;  
  37.                 };
  38.  
  39. #endif
  40.